/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-09-09 22:15:23
 * @LastEditTime: 2019-09-13 17:50:52
 * @LastEditors: Please set LastEditors
 */
const mongoose = require('mongoose')
const Schema = mongoose.Schema

// Create Schema
const UserSchema = new Schema({
    name:{type:String,required:true},
    email:{type:String,required:true},
    password:{type:String,required:true},
    avatar:{type:String},
    date:{type:Date,default:Date.now},
    identity:{type:String,require:true}
})

module.exports = User = mongoose.model('users',UserSchema) 